package com.tn.openrpc.jms;

import javax.jms.Message;

/**
 * The interface to an object that processes a <code>Message</code>.
 */
public interface MessageProcessor<M extends Message>
{
  /**
   * Processes the <code>message</code>.
   *
   * @throws MessageProcessingException if an error occurs processing the <code>message</code>.
   */
  public void processMessage(M message) throws MessageProcessingException;
}
